﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace EstateNuke.BusinessSystem
{
    public class Constant
    {
        public static int ViewRoomWidth = 136;
        public static int ViewRoomHeight = 26;
        public static int PAGESIZE = 40;

        public static bool IsNumeric(string number)
        {
            bool b = true;
            try
            {
                decimal d = decimal.Parse(number);
            }
            catch (Exception)
            {
                b = false;
            }

            return b;
        }

        public static bool IsShort(string number)
        {
            bool b = true;
            try
            {
                short d = short.Parse(number);
            }
            catch (Exception)
            {
                b = false;
            }

            return b;
        }
    }
}